import request from '@/utils/request'

// 创建污染地块安全利用率调查
export function createwrdkland(data) {
  return request({
    url: '/wrdk/wrdkland/create',
    method: 'post',
    data: data
  })
}

// 更新污染地块安全利用率调查
export function updatewrdkland(data) {
  return request({
    url: '/wrdk/wrdkland/update',
    method: 'put',
    data: data
  })
}

// 删除污染地块安全利用率调查
export function deletewrdkland(id) {
  return request({
    url: '/wrdk/wrdkland/delete?id=' + id,
    method: 'delete'
  })
}

// 获得污染地块安全利用率调查
export function getwrdkland(id) {
  return request({
    url: '/wrdk/wrdkland/get?id=' + id,
    method: 'get'
  })
}

// 获得污染地块安全利用率调查分页
export function getwrdklandPage(query) {
  return request({
    url: '/wrdk/wrdkland/page',
    method: 'get',
    params: query
  })
}

// 导出污染地块安全利用率调查 Excel
export function exportwrdklandExcel(query) {
  return request({
    url: '/wrdk/wrdkland/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 删除选择的污染地块目录
export function deleteselectland(ids) {
  return request({
    url: '/wrdk/wrdkland/delete/select?ids=' + ids,
    method: 'delete',
  })
}
